#include <iostream>
using namespace std;
namespace Wxb
{
    class Stack
    {
    public:
        Stack(int capacity=10)
                :_next(new int[capacity])//C++中的动态开辟关键字==malloc
        {
        }
        ~Stack()
        {
            delete []_next;//C++中的动释放关键字==free
        }

    private:
        int *_next;
    };
}
int main()
{
    Wxb::Stack d1(10);
    Wxb::Stack d2(d1);


}
